package cn.coder.mybatis.javamail.model;


import  javax.mail.*;

/*
 * Created by threegrand2 on 15-1-7.
 * 邮件用户验证
 */

public class AuthenticMail extends Authenticator {
    private String username = null;
    private  String password = null;
    public AuthenticMail(){}

    public AuthenticMail(String username, String password) {
        this.username = username;
        this.password = password;
    }
    protected PasswordAuthentication getPasswordAuthentication(){
        return new PasswordAuthentication(username,password);
    }
}
